{% extends "base.html" %}
{% block content %}
<head>
    <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/authorization/style.css" />
    <title>Authorization</title>
</head>
<body class="login">
<div id="container">

    <div id="header">
        <div id="branding">
            <h1>Authorization</h1>
        </div>
    </div>

    <div id="content" class="colM">
    
{% if user.is_authenticated %}
What is, {{ user.username }}? You already authorisation.
However, always it is possible <a href="{% url auth_logout %}">quit</a>.<br/><br/>
{% else %}

{% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}
    <div id="content-main">
    <form method="post" action="">
    <dl>
    {% for field in form %}
        <div class="form-row">
        <dt>{{ field.name }}</dt>
            <dd>{{ field }}
        </div>
        {% if field.help_text %}<div>{{ field.help_text }}</div>{% endif %}
        {% if field.errors %}<div>{{ field.errors }}</div>{% endif %}
        </dd>
    {% endfor %}
    </dl>
    <div class="submit-row">
        <input type="submit" value="Input">
    </div>
    </form>
   

     <br/><br/>
    <ul>
        <li><a href="{% url auth_password_reset %}">Have forgotten the password?</a></li>
        <li><a href="/timesheet/admin/">Transition to administration.</a></li>
    </ul>  
{% endif %}
    </div>
    </div>
</div>
</body>
{% endblock %}